/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.Inheritance;

/**
 *
 * @author Avis
 */
public class Rectangle 
{
  private int length;
  private int breadth;
  
  public Rectangle(){
      
  }
   public Rectangle(int l,int b)
   {
       length = l;
       breadth = b;
   }
   public int getBreadth() {
        return breadth;
    }

    public void setBreadth(int breadth) {
        this.breadth = breadth;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }
   
   public int area()
   {
       return length * breadth;
   }
}
